package com.demo.locale;

import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;

public class localeTest {
  public static void main(String[] args){
	  Locale zhloc=new Locale("zh", "CN");
	  Locale enloc=new Locale("en", "EN");
	  Locale frloc=new Locale("fr", "FR");

	  ResourceBundle zhrb=ResourceBundle.getBundle("Message", zhloc);
	  ResourceBundle enrb=ResourceBundle.getBundle("Message", enloc);
	  ResourceBundle frrb=ResourceBundle.getBundle("Message", frloc);
      
	  String s1=zhrb.getString("info");
	  String s2=enrb.getString("info");
	  String s3=frrb.getString("info");
//	  System.out.println(zhrb.getString("info"));
//	  System.out.println(enrb.getString("info"));
//	  System.out.println(frrb.getString("info"));
	  
	  String mfzh=MessageFormat.format(s1,"喻红利");
	  System.out.println();
	  


  }
}
